<?php
include_once("./metier/gridlayout.class.php");
include_once("metier/gridlayout.dao.mysql.php");
header("Content-Type: text/plain");

$db = new myPDO();
$layoutDAO = new GridLayoutDAO();
$layout= new GridLayout(0,0,0,$_POST['identifiant']);
$layout = $layoutDAO->findGridLayout($layout,$db);

// Création du fichier XML
echo "<?xml version='1.0' encoding='UTF-8'?> \n\r" ;

	echo "<activite>" ;
	echo "<identifiant>".$layout->getIdentifiant()."</identifiant>";
	echo "<lignes>".$layout->getNbLignes()."</lignes>";
        echo "<colonnes>".$layout->getNbColonnes()."</colonnes>";
	echo "<activite>".$layout->getActiId()."</activite>";
	echo "</activite>";

?>